@Configuration
@EnableConfigurationProperties(FileProperties.class)
@ConditionalOnProperty(prefix = "mask.file", name = "storage-type", havingValue = "MINIO")
public class MinioConfig {
    @Bean
    public MinioClient minioClient(FileProperties properties) {
        return MinioClient.builder()
                .endpoint(properties.getMinio().getEndpoint())
                .credentials(properties.getMinio().getAccessKey(), 
                           properties.getMinio().getSecretKey())
                .build();
    }
}